<form id="form_campaigns_showedit" method="post" action="y.php?r=campaigns/savedata">
    <input type="hidden" name="campaigns_id" value="">
    <table class="tab_form">
        <tr>
            <td><select class="easyui-combogrid" name="dept" style="width: 90%;"
                        data-options="
                        label:'产品',
                        mode: 'remote',
            panelWidth:200,
            idField:'product_id',
            textField:'productname',
            url:'y.php?r=product/searchproducts',
            fitColumns: true,
            columns:[[
                {field:'productname',title:'产品名称',width:60},
                {field:'model',title:'型号',width:60}
            ]]
        "></select>
            </td>
        </tr>
        <tr>
            <td>

            </td>
        </tr>
    </table>
</form>
<div style="text-align:center;padding:5px 0">
    <a href="javascript:void(0)" class="easyui-linkbutton" onclick="submitForm()" style="width:80px">保存</a>
    <a href="javascript:void(0)" class="easyui-linkbutton" onclick="clearForm()" style="width:80px">清空</a>
</div>
<script>
    function doSearchProduct() {
        loadWin2('选择商品', 'y.php?r=product/select&form=form_campaigns_showedit&fieldname=product_id&fieldid=compaigns_showedit_product');
    }
</script>

